package com.aaa.system.service;

import com.aaa.system.vo.RoleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.aaa.entity.Role;
import com.aaa.vo.Result;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author Lei
 * @create 2023-03-22 18:40
 */
public interface RoleService {
    Result<List<Role>> getAll();

    Result<Map<String,Object>> getByUserId(Long userId);

    Result<String> confirmRole(Long userId, Long[] roleIds);

    Result<IPage<Role>> getAllRole(Integer current, Integer size, RoleVo roleVo);

    Result<Boolean> saveOrUpdateRole(Role role);

    Result<Long[]> delRole(Long roleId);

    Result<ArrayList<Long>> mulDelRole(Long[] roleIds);
}
